<div class="x_panel">
  <div class="x_content" style="display: block;">
    <div class="row-fluid">
      <label class="control-label">订单号: </label>{$order.order_no}<br/>
      <label class="control-label">订单状态：</label>{if $order.is_dai==1 && $orderitem.order_status==0}中经代支付{elseif $order.is_dai==1 && $orderitem.order_status==1}中经已代付{elseif $order.order_status==0}待支付{elseif $order.order_status==1}已付款{elseif $order.order_status==2}已取消{elseif $order.order_status==3}已发货{elseif $order.order_status==4}已完成{else}待审核{/if}<br/>
      <label class="control-label">来源渠道：</label>{if isset($orderitem.channel_name)}{$orderitem.channel_name}{/if}<br/>
      <label class="control-label">下单时间：</label>{$order.order_time}<br/>
    </div>
    <br>
    <div class="row-fluid">
      <label class="control-label">渠道订单总金额: </label>{$order.channel_amount}<br/>
      <label class="control-label">实际订单总金额: </label>{$order.order_amount}<br/>
      <label class="control-label">用户支付总金额: </label>{$order.order_amount}<br/>
      <label class="control-label">支付方式：</label>{$order.pay_type}<br/>
      <label class="control-label">交易流水号：</label>{$order.pay_no}<br/>
      <label class="control-label">支付时间：</label>{$order.pay_time}<br/>
    </div>
    <div class="row-fluid">
      <label class="control-label">手机号: </label>{$order.mobile}<br/>
    </div>

    <div class="cont">
      {foreach $order_goods AS $key=>$value}
      {if $value.package_status}
      包裹{$key}<br/>
      <label class="control-label">包裹状态: </label>
      {if $value.package_status==0}已申请售后
      {elseif $value.package_status==1}待支付
      {elseif $value.package_status==2}待发货
      {elseif $value.package_status==3}已取消
      {elseif $value.package_status==4}已发货
      {elseif $value.package_status==5}已完成
      {elseif $value.package_status==6}已取消售后
      {elseif $value.package_status==7}已完成售后
      {/if}
      <br/>
      {/if}
      <table class="table table-bordered table-striped">
        <thead>
        <tr>
          <th width="100px">SPU ID</th>
          <th width="100px">商品名称</th>
          <th>SKU ID</th>
          <th>图片</th>
          <th>规格</th>
          <th>渠道售价</th>
          <th>实际售价</th>
          <th>数量</th>
          <th>渠道合计</th>
          <th>实际合计</th>
        </tr>
        </thead>
        <tbody>
        {foreach $value.list as $k=>$v}
        <tr>
          <td>{$v.yx_goods_id}</td>
          <td>{$v.goods_name}</td>
          <td>{$v.yx_sku_id}</td>
          <td><img src="{$pic_domain}{$v.sku_pic}" width="50px" height="50px" /> </td>
          <td width="300px">
            {foreach json_decode($v.f_sku_spec,true) as $ke=>$specitem}
            {if $ke!=0}<br/>{/if}{$specitem.spec_name}:{$specitem.spec_value}
            {/foreach}
          </td>
          <td>{$v.channel_price}</td>
          <td>{$v.sku_price}</td>
          <td>{$v.buy_num}</td>
          <td>{$v.channel_price*$v.buy_num}</td>
          <td>{$v.sku_price*$v.buy_num}</td>
        </tr>
        {/foreach}
        </tbody>
      </table>
      {/foreach}
    </div>
    <br>
    <div class="row-fluid">
      <label class="control-label">收件人: </label>{$order.consignee}<br/>
      <label class="control-label">手机号码：</label>{$order.consignee_phone}<br/>
      <label class="control-label">地址：</label>{$order.consignee_address}<br/>
    </div>

    <div class="cont">
      {foreach $package AS $key=>$value}
      包裹{$key}<br/>
      <table class="table table-bordered table-striped">

        <tbody>
        {foreach $value as $k=>$v}
        <tr>
          <td>物流{$k}</td>
          <td>物流公司：{$v.express_company}</td>
          <td>物流单号：{$v.express_no}</td>
        </tr>
        {/foreach}
        </tbody>
      </table>
      {/foreach}
    </div>

  </div>
</div>

